require 'watir'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'test/unit/ui/reporter'
require 'stringio'
require 'watir/testcase'

topdir = File.dirname(__FILE__)
Dir.chdir topdir do
  
  # User Management Related
  require "ChangePassword_test.rb"
  require "CreateUser_test.rb"
  require "CreateAndDeleteUser_test.rb"
  require "ChangeContactSettings_test.rb"
  require "UserRegistrationSettings_test.rb"
  
  # User Profile Tests
  require "ProfileEmail_test.rb"
  require "ProfileSiteOptions_test.rb"
  
  # Search Related
  require "BasicSearch_test.rb"
  require "AdvancedSearch_test.rb"
  
  # Post Related
  require "BlogPost_test.rb"
  require "FileGalleryAddFile_test.rb"
  require "CreateForumPost_test.rb"
  require "PhotoPost_test.rb"
  
  # Comment Related
  require "BlogComment_test.rb"
  require "PhotoComment_test.rb"
  
end

  ObjectSpace.each_object(Class) do |test|
    Test::Unit::UI::Reporter.run(test.suite,'TestResults', :xml) if
    test < Test::Unit::TestCase
  end
  